// 类数组
const arrayLikeObj = {
  0: 1,
  1: 2,
  length: 2,
};
console.log(Array.from(arrayLikeObj)); // [1,2]

const str = "abc";
console.log(Array.from(str));
